package com.mlearning.demo.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.mlearning.demo.pojo.neo4j.Book;
import com.mlearning.demo.pojo.neo4j.Mastered;
import com.mlearning.demo.pojo.neo4j.Tree;
import com.mlearning.demo.pojo.neo4j.User;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.Set;

public interface UserService {
    boolean creat(String name, String email, String password);

    void delete(String name);

    boolean find_email(String email);

    User select(String email, String password);

    ArrayList<Tree> getMyTrees(int userid);
    ArrayList<String> getRecKnows(int userid);
    ArrayList<Mastered>getMastered(int userid);
    String updateMastered(int userid);
    String updateMyBooks(int userid);
    String updateMyTrees(int userid);
    int getMasteredQuan(int userid);
    ArrayList<Book>getMyBooks(int userid);
    int getMyBooksQuan(int userid);
    boolean isMastered(int userid, String knowName);
    int addMyBook(int bookId,int userId,long timestamp);
    int delMyBook(int bookId,int userId);
    int edit(int userid,int sort,String content);
}
